package com.toppitch.site.data;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.toppitch.site.db.IGetFromResultSet;

public class Model extends BaseData implements IGetFromResultSet {
	private String modelId;
	private String modelFileName;

	public String toInsertString() {
		return toInsertString("model", modelId, modelFileName);
	}

	public String getModelId() {
		return modelId;
	}

	public void setModelId(String modelId) {
		this.modelId = modelId;
	}

	public String getModelFileName() {
		return modelFileName;
	}

	public void setModelFileName(String modelFileName) {
		this.modelFileName = modelFileName;
	}

	public void getFromResultSet(ResultSet rs) throws SQLException {
		modelId = rs.getString("modelId");
		modelFileName = rs.getString("modelFileName");
	}
}
